package com.xx.secret.exception;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author ：wangcheng
 * @date 2024/3/14
 **/
@Setter
@Getter
@ToString
public class SecretException extends RuntimeException{

    private int code;
    private String desc;

    private static final int FAILURE_CODE = 300;

    public SecretException(String desc){
        this(FAILURE_CODE,desc);
    }

    public SecretException(int code, String desc) {
        super(desc);
        this.code = code;
        this.desc = desc;
    }
}
